using System;
using System.Collections.Generic;
using System.Text;

namespace Xivo.Shared
{
  public class Common
  {
    public static int bounds(int min, int max, int value) {
      if (value > max)
        return max;
      if (value < min)
        return min;
      return value;
    }

    static RadioBase _radio = new NullRadio();
    public static RadioBase Radio {
    get {
      return _radio;
    }
      set {
        _radio = value;
      }
    }
  }
}
